package edu.ynu.se.xiecheng.achitectureclass.GreenHouse.GreenhouseEntity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.List;

@Getter
@Setter
@Entity
@Table(name = "biguser")
public class BigUser extends LogicEntity {

    @Column(nullable = false, unique = true)
    private String username; // 用户名

    @Column(nullable = false)
    private String password; // 密码

    @Column(nullable = false)
    private String email; // 邮箱

    @Column(nullable = false)
    private String role; // 用户角色，例如 "admin", "user"

}